/**
 * http://surenpi.com
 */
package autotest.web.framework.plugin.wizards;

import java.util.Arrays;

import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaApplicationLaunchShortcut;

/**
 * @author suren
 * @date 2016年9月8日 下午9:21:52
 */
public class SuRenJavaLauncher extends JavaApplicationLaunchShortcut
{

	@Override
	protected IType chooseType(IType[] types, String title)
	{
		for(IType type : types)
		{
			System.out.println(type.getFullyQualifiedName());
			if(type.getFullyQualifiedName().equals("org.suren.autotest.web.framework.core.suite.SuiteRunner"))
			{
				return type;
			}
		}
		
		return super.chooseType(types, title);
	}

	@Override
	protected void launch(IType type, String mode)
	{
		// TODO Auto-generated method stub
		super.launch(type, mode);
	}

}
